levelbar: Remove unneeded checks
authorBenjamin Otte <otte@redhat.com>
Wed, 30 Apr 2014 07:22:29 +0000 (09:22 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 1 May 2014 12:51:28 +0000 (14:51 +0200)
Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

gtk/gtklevelbar.c

index 1af260bdc273baf308d59816ee5cf558b90ed1bf..755002b43ea84477b7d563554c438bbfa04b61b5 100644 (file)
@@ -545,10 +545,8 @@ gtk_level_bar_get_preferred_width (GtkWidget *widget,
   else
     width += block_width;
 
-  if (minimum)
-    *minimum = width;
-  if (natural)
-    *natural = width;
+  *minimum = width;
+  *natural = width;
 }
 
 static void
@@ -572,10 +570,8 @@ gtk_level_bar_get_preferred_height (GtkWidget *widget,
   else
     height += block_height;
 
-  if (minimum)
-    *minimum = height;
-  if (natural)
-    *natural = height;
+  *minimum = height;
+  *natural = height;
 }
 
 static void